package com.simple.gateway.center.basedata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.simple.gateway.center.basedata.po.GatewayDistribution;
import java.util.List;

/**
* 项目: simple-gateway-core
*
* 功能描述: 网关分配表
*
* @author: yysimple
* @create: 2023-08-07 14:11:11
**/
@Mapper
public interface GatewayDistributionMapper extends BaseMapper<GatewayDistribution> {

    /**
    * 通过ID查询单个网关分配表
    *
    * @param id ID
    * @return {@link GatewayDistribution}
    */
    GatewayDistribution findGatewayDistributionById(@Param("id") Long id);

    /**
    * 多条件查询GatewayDistribution列表
    *
    * @param gatewayDistribution
    * @return java.util.List<GatewayDistribution>
    */
    List<GatewayDistribution> listGatewayDistribution(GatewayDistribution gatewayDistribution);

    /**
    * 新增网关分配表
    *
    * @param gatewayDistribution 网关分配表
    */
    void insertGatewayDistribution(GatewayDistribution gatewayDistribution);

    /**
    * 修改网关分配表
    *
    * @param gatewayDistribution 网关分配表
    */
    void updateGatewayDistribution(GatewayDistribution gatewayDistribution);

    /**
    * 通过ID删除单个网关分配表
    *
    * @param id ID
    */
    void deleteGatewayDistributionById(@Param("id") Long id);

}